{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "fe6323a4",
   "metadata": {},
   "source": [
    "# 作业\n",
    "##  尝试搜索POI 2.0\n",
    "## 获取中餐厅、西餐厅、快餐厅的信息（图片、内容等）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "6cd71006",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区|k11\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"city_limit\":\"true\",\n",
    "    \"page_size\":\"8\",\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "e10cf756",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "7aa8c06e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '广东省',\n",
       "   'id': 'B00141JEHR',\n",
       "   'location': '113.266887,23.133306',\n",
       "   'type': '地名地址信息;普通地名;省级地名',\n",
       "   'typecode': '190102',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '越秀区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '天河区',\n",
       "   'id': 'B00140TTQZ',\n",
       "   'location': '113.361597,23.124817',\n",
       "   'type': '地名地址信息;普通地名;区县级地名',\n",
       "   'typecode': '190105',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '天河区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106'},\n",
       "  {'name': '广州市',\n",
       "   'id': 'B00141JEHS',\n",
       "   'location': '113.264499,23.130061',\n",
       "   'type': '地名地址信息;普通地名;地市级地名',\n",
       "   'typecode': '190104',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '越秀区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广东省人民政府',\n",
       "   'id': 'B001403B27',\n",
       "   'location': '113.266887,23.133306',\n",
       "   'type': '政府机构及社会团体;政府机关;省直辖市级政府及事业单位',\n",
       "   'typecode': '130102',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '东风中路305号(纪念堂地铁站D2口步行400米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广东省盐务局停车场',\n",
       "   'id': 'B00141I9RX',\n",
       "   'location': '113.278106,23.127134',\n",
       "   'type': '交通设施服务;停车场;公共停车场',\n",
       "   'typecode': '150904',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '中山四路18-20号广东省盐务局',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广州K11购物艺术中心',\n",
       "   'id': 'B0FFH11BOI',\n",
       "   'location': '113.326132,23.117789',\n",
       "   'type': '购物服务;商场;购物中心',\n",
       "   'typecode': '060101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '珠江东路6号(花城大道地铁站B口步行230米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106'},\n",
       "  {'name': '广州站',\n",
       "   'id': 'B00140WEW0',\n",
       "   'location': '113.257331,23.149243',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'typecode': '150200',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '环市西路159号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广州东站',\n",
       "   'id': 'B00140TY64',\n",
       "   'location': '113.324981,23.150597',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'typecode': '150200',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '东站路1号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106'}],\n",
       " 'count': '8'}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6a5f79d7",
   "metadata": {},
   "source": [
    "# 获取中餐厅、西餐厅、快餐厅的信息（图片、内容等）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "ef8f5fc2",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 中餐厅"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "1e96b945",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050100\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "79dab9ff",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "83a435e1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '百花园酒家',\n",
       "   'id': 'B00140CPGP',\n",
       "   'location': '113.796386,23.310329',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'typecode': '050101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '荔城大道百花路88号百花山庄度假村内',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'tel': '020-82610627',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.3'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/51e40c803e93af974074931ddf8f6b54'}]},\n",
       "  {'name': '华哥私厨-原醉琼楼',\n",
       "   'id': 'B00140H2WE',\n",
       "   'location': '113.252061,23.121695',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'typecode': '050103',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '光复北路443号华哥私厨-原醉琼楼',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '龙津',\n",
       "    'tel': '020-81879777;13802740346',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.3',\n",
       "    'cost': '86.00',\n",
       "    'opentime_today': '11:00-21:30',\n",
       "    'opentime_week': '11:00-21:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d74ebdc4a69d848a6271af21b8de037d'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/61a5005597edd5a1c6315b24a6ee9b63'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydiMcoMFThdn8_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '北江吃鱼专门店(美术学院店)',\n",
       "   'id': 'B00140BZBH',\n",
       "   'location': '113.279804,23.084635',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '江南大道南435号首层',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '晓港',\n",
       "    'tel': '020-84428783;13632496973',\n",
       "    'rectag': '中餐',\n",
       "    'keytag': '中餐',\n",
       "    'rating': '4.8',\n",
       "    'cost': '59.00',\n",
       "    'opentime_today': '07:00-14:30 17:00-22:30',\n",
       "    'opentime_week': '07:00-14:30；17:00-22:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d9e36c0767fe6e96841e11b7c4d9ab8'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/350d88aa47259417210b41a6911b535f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/657a5294f530461521f58fc81017842f'}]},\n",
       "  {'name': '众喜酒家(东圃旗舰店)',\n",
       "   'id': 'B0FFGDRN3R',\n",
       "   'location': '113.408762,23.112469',\n",
       "   'type': '餐饮服务;中餐厅;海鲜酒楼',\n",
       "   'typecode': '050119',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '东圃前进街石宦路9号(前进小学西门对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '东圃',\n",
       "    'tel': '020-82599813;020-82599239',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.6',\n",
       "    'cost': '55.00',\n",
       "    'opentime_today': '09:00-21:30',\n",
       "    'opentime_week': '09:00-21:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e414af30083020b290df9d58756c6396'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/77c697f6b381c12671fabf322cd23dc6'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN01OjALKm1IydjGcoT7x_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '湖南大碗菜北兴店',\n",
       "   'id': 'B00141RW30',\n",
       "   'location': '113.420113,23.425371',\n",
       "   'type': '餐饮服务;中餐厅;湖南菜(湘菜)',\n",
       "   'typecode': '050108',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '花都区',\n",
       "   'address': '花都大道东187号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440114',\n",
       "   'business': {'business_area': '北兴',\n",
       "    'tel': '020-86792278',\n",
       "    'rectag': '湘菜',\n",
       "    'keytag': '湘菜',\n",
       "    'rating': '4.4',\n",
       "    'cost': '54.00',\n",
       "    'opentime_today': '09:30-22:00',\n",
       "    'opentime_week': '09:30-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/262278c4b3f9389d7c75e2de9481ca8e'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5ca8de3163bef23ad6feb3b254f427d6'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b70e99fb6dc7cc8373877074e3ba992f'}]},\n",
       "  {'name': '兴隆食府(石牌店)',\n",
       "   'id': 'B00141RH6S',\n",
       "   'location': '113.341277,23.127523',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '石牌豪居口4号1楼部位自编101单元',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'tel': '020-85516932',\n",
       "    'rectag': '中餐',\n",
       "    'keytag': '中餐',\n",
       "    'rating': '4.6',\n",
       "    'cost': '54.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/153f46b66ede7829c781235ab486ac42'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bfbfe59f2d9c008de7c5202fbf47a9a5'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/216f7bcdd0e2ca716b67a1464c41721e'}]},\n",
       "  {'name': '中国兰州牛肉拉面(人民北路)',\n",
       "   'id': 'B00140RXE0',\n",
       "   'location': '113.254479,23.126068',\n",
       "   'type': '餐饮服务;中餐厅;清真菜馆',\n",
       "   'typecode': '050121',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '人民北路677号(西门口地铁站D口步行190米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '东风',\n",
       "    'tel': '18697229227',\n",
       "    'rectag': '拉面',\n",
       "    'keytag': '拉面',\n",
       "    'rating': '4.5',\n",
       "    'cost': '17.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a2d77d3fcec87b3feed146e35f842080'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c7f69121765bd5b5f1cb11b22221f6e4'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/18fd43bb88ea897a418776b9546e672b'}]},\n",
       "  {'name': '半山酒家',\n",
       "   'id': 'B0FFGWILYQ',\n",
       "   'location': '113.317668,23.213855',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'typecode': '050101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '君源山庄内',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'business_area': '白云大道',\n",
       "    'tel': '020-37247994;020-37247910',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.6',\n",
       "    'cost': '115.00',\n",
       "    'opentime_today': '11:00-21:00',\n",
       "    'opentime_week': '11:00-21:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d5252e1427d024800492a379c92e15b'}]},\n",
       "  {'name': '丽轩中餐厅',\n",
       "   'id': 'B00141KSC2',\n",
       "   'location': '113.327470,23.116173',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'typecode': '050103',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '兴安路3号广州富力丽思卡尔顿酒店3层(近省博物馆)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '珠江新城',\n",
       "    'tel': '020-38136888;020-38136689',\n",
       "    'tag': '点心,虾球,燕窝蛋,炖雪梨,XO酱萝卜糕,麒麟鸡,三葱焖虾球,鲜虾肠粉,豆沙煎软糕,扇形金蔬,铁锅酒香豉油乳鸽,龙岗鸡,澳洲龙虾,古老肉,麦片虾球',\n",
       "    'rectag': '米其林一星餐厅',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.4',\n",
       "    'cost': '400.00',\n",
       "    'opentime_today': '10:30-14:00 16:30-21:30',\n",
       "    'opentime_week': '10:30-14:00；16:30-21:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydiaIZFgaqWSU_!!3695320962-0-kbcontentapng.jpg'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN01AnNIDd1IydgdqWUyU_!!3695320962-0-kbcontentapng.jpg'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN01KkQunL1Iydgix8Put_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '志钳私房菜',\n",
       "   'id': 'B00141JBFX',\n",
       "   'location': '113.555617,23.499564',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '神岗镇菜地村路口(赤草地铁站A口步行460米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117',\n",
       "   'business': {'tel': '020-87806968;13527871011',\n",
       "    'rectag': '私房菜',\n",
       "    'keytag': '私房菜',\n",
       "    'rating': '4.5',\n",
       "    'cost': '84.00',\n",
       "    'opentime_today': '10:00-21:00',\n",
       "    'opentime_week': '10:00-21:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd84f70bea5493d31ba6176c730d0d0d'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "833d24eb",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050200\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "e161a9c1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "7aa4e506",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '芭堤',\n",
       "   'id': 'B0FFHOJJI6',\n",
       "   'location': '113.406583,22.940373',\n",
       "   'type': '餐饮服务;外国餐厅;泰国/越南菜品餐厅',\n",
       "   'typecode': '050206',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '番禺区',\n",
       "   'address': '大龙街傍江西村泰兴路广场01号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440113',\n",
       "   'business': {'business_area': '石碁',\n",
       "    'tel': '15919673022;020-31128388',\n",
       "    'keytag': '餐饮服务,外国餐厅,泰国/越南菜品餐厅',\n",
       "    'rating': '4.5',\n",
       "    'cost': '97.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c0e9794db69e00ac371165c37a25bc96'}]},\n",
       "  {'name': '红灯笼(天河店)',\n",
       "   'id': 'B00140T30R',\n",
       "   'location': '113.329018,23.144991',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '林和东路126号B1层(广东烟草大厦对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和村',\n",
       "    'tel': '020-38800886',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.5',\n",
       "    'cost': '143.00'},\n",
       "   'photos': [{'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/675c9f53c8fb0daae431078670ae8991'},\n",
       "    {'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d69546c001a5ade14a3da12e27e6b2a1'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a739af5715f87723dc9d40beaf0ad9a9'}]},\n",
       "  {'name': '承家韩园韩国料理',\n",
       "   'id': 'B0FFFWWWJT',\n",
       "   'location': '113.311094,23.094322',\n",
       "   'type': '餐饮服务;外国餐厅;韩国料理',\n",
       "   'typecode': '050203',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '敦和路愉景南苑1020号(近鹭江地铁站344米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '新港',\n",
       "    'tel': '13570598234',\n",
       "    'tag': '调味猪颈肉,石锅拌饭,泡菜饼,泡菜炒饭,泡菜豆芽汤,烤五花肉,调味牛排,炸酱面,五花肉,土豆饼,荞麦冷面,辣椒饼,清国酱汤,海带汤饭,辛拉面,拌冷面,石锅牛肉饭,泡菜汤,牛肉石锅拌饭,紫菜包饭',\n",
       "    'rectag': '韩国料理',\n",
       "    'keytag': '韩国料理',\n",
       "    'rating': '4.6',\n",
       "    'cost': '82.00',\n",
       "    'opentime_today': '11:00-15:00 17:00-22:00',\n",
       "    'opentime_week': '11:00-15:00；17:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1118dca52b29967feeaa6c60a99d64fd'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1442f8033a92974878c63926af535956'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/342b060a55e13998fbd53474836ab0a7'}]},\n",
       "  {'name': '喜连川日本料理',\n",
       "   'id': 'B0FFHHXJ5J',\n",
       "   'location': '113.576769,23.127132',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇凤凰城交通中心广场大街99号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '020-32857396;18929586321',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.3',\n",
       "    'cost': '167.00',\n",
       "    'opentime_today': '10:00-22:00',\n",
       "    'opentime_week': '10:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3418e86d3ab573658dcf09b40a4ecf46'}]},\n",
       "  {'name': 'AL MANARA(中山八路店)',\n",
       "   'id': 'B0FFHJEWZP',\n",
       "   'location': '113.240102,23.125176',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'typecode': '050201',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '中山八路富力商贸大厦一楼东侧(圣玛登酒店对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '西关',\n",
       "    'tel': '020-81978629;13422222994',\n",
       "    'rectag': '西餐',\n",
       "    'keytag': '西餐',\n",
       "    'rating': '4.3',\n",
       "    'cost': '69.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/74f088f52281bca20bba6b2d21dc9a7f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2667b4076c9b349fbe60d3b29260e661'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/42663ee46a081145cb171ece9176039e'}]},\n",
       "  {'name': '一旬料理',\n",
       "   'id': 'B0FFHU0EI2',\n",
       "   'location': '113.212578,23.077158',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '龙溪中路邦华星际广场2栋(中国建设银行旁)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '龙溪',\n",
       "    'tel': '13632413001',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.3',\n",
       "    'cost': '70.00',\n",
       "    'opentime_today': '10:00-22:00',\n",
       "    'opentime_week': '10:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e13d25ac3932ed43ead1584146f9f4ed'}]},\n",
       "  {'name': '佳润云凯酒店西餐厅',\n",
       "   'id': 'B0FFF68UP8',\n",
       "   'location': '113.327596,23.204125',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'typecode': '050201',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '广州大道北同和路187号佳润云凯酒店1层',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'tel': '020-87062888',\n",
       "    'rectag': '丰盛的海鲜自助',\n",
       "    'keytag': '西餐',\n",
       "    'rating': '4.2',\n",
       "    'cost': '96.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fcd2baeb9daea5df7411eaa5782d7f71'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/910805cbbbcbe30d5fd2adbc8a73407f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/977df07be23e5b67a09f43e33bcdfb94'}]},\n",
       "  {'name': '小禅融合料理(体育西路店)',\n",
       "   'id': 'B0FFHIVTLT',\n",
       "   'location': '113.320698,23.139710',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '体育西路191号中石化大厦外围一楼兆业街(门头挂灯笼)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和村',\n",
       "    'tel': '020-85202064;18998412706',\n",
       "    'tag': '梅肉煮秋刀鱼,猪骨汤拉面,牛舌厚切,五色刺身组合',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.6',\n",
       "    'cost': '92.00',\n",
       "    'opentime_today': '11:00-22:00',\n",
       "    'opentime_week': '11:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/054d0dbefc927f5fe4a00f69f137804e'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ba14644467a34929e1e198f9e5cb1254'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/064b3b657c48909d7ce1bad8a98ca6ff'}]},\n",
       "  {'name': '牛派牛扒小馆(番禺店)',\n",
       "   'id': 'B0FFH34BFP',\n",
       "   'location': '113.390799,22.933608',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '番禺区',\n",
       "   'address': '东怡新区二街25号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440113',\n",
       "   'business': {'business_area': '石碁',\n",
       "    'tel': '13332889583',\n",
       "    'tag': '茄汁鸡扒意粉',\n",
       "    'rectag': '牛排',\n",
       "    'keytag': '牛排',\n",
       "    'rating': '4.4',\n",
       "    'cost': '66.00',\n",
       "    'opentime_today': '10:50-14:30 17:00-21:31',\n",
       "    'opentime_week': '10:50-14:30；17:00-21:31'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39a4c6ed62a6a0d619ee2ed4c3b3df8d'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1fb1245333aa83d06b7893874c0611d1'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/76d65029d5098e0920c367076f355cc8'}]},\n",
       "  {'name': '古田居特色寿司料理(新塘汇创店)',\n",
       "   'id': 'B0FFFYI7SI',\n",
       "   'location': '113.615287,23.124264',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇东坑三横中路1号3栋首层131号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '020-32897767',\n",
       "    'tag': '纹甲鱿鱼刺身三食,俄罗斯小海螺,铁板雪花牛肉粒,极品三文鱼寿司盛宴,古田居帝皇沙拉,大虾天妇罗,生蚝大蚬辣锅花螺大蚬辣锅,极上香芝海老焗,和牛炒日本青黄瓜,汁烧厚鳗鱼寿司,卜卜脆鹅肝,明太子烤蘑菇,芦笋新作,金雕活造,冷鹅肝,酥皮鳗鱼披萨,牛油果鹅肝鱼腩,帝皇火炙拼盘,章红鱼薄切,火焰石雪龙和牛,古田居特色地狱花螺,霸气蟹柳,火炙蟹棒寿司,鹅肝寿司,日式蟹皇粥,香芒苹果丝沙拉,松刺身拼盘,法国鹅肝蟹籽炒饭',\n",
       "    'rectag': '时尚日式料理店',\n",
       "    'keytag': '寿司',\n",
       "    'rating': '4.8',\n",
       "    'cost': '105.00',\n",
       "    'opentime_today': '11:30-15:00 17:00-22:00',\n",
       "    'opentime_week': '11:30-15:00；17:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39e40e8a38528e3bac58b94e606ea6d3'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be1cd53fd7358f5a706167366c0d5da9'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/616ec67294ac72320dadbb1ed650a4cd'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "b1089a3e",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050300\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "a27b2cae",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "288b1dee",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '正宗果陇粿汁(中大店)',\n",
       "   'id': 'B0FFG92YRY',\n",
       "   'location': '113.292324,23.084712',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '兴隆大街9号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '凤阳',\n",
       "    'tel': '13592941598',\n",
       "    'rectag': '快餐',\n",
       "    'keytag': '快餐',\n",
       "    'rating': '4.3'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/57032a86ea4beadfa2550af139869740'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/602e48976580ae222acd9befbd724e7f'},\n",
       "    {'title': '粿汁汤+新鲜猪肉猪杂汤（份）',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2206672736158/O1CN018JiCz51vMPaMjNbHM_!!2206672736158-0-koubei.jpg'}]},\n",
       "  {'name': '旧街坊茶楼(市二宫店)',\n",
       "   'id': 'B0FFH86DDV',\n",
       "   'location': '113.271657,23.103900',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅|餐饮服务;茶艺馆;茶艺馆',\n",
       "   'typecode': '050305|050600',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '前进路江南大道中路99号同乐汇2层自编F2016铺',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '滨江',\n",
       "    'tel': '020-89627570;15202030312',\n",
       "    'rectag': '茶座',\n",
       "    'keytag': '茶座',\n",
       "    'rating': '4.7',\n",
       "    'cost': '50.00',\n",
       "    'opentime_today': '07:00-21:00',\n",
       "    'opentime_week': '07:00-21:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/187de48f9448c535175f2cd429b0e94b'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fd40dd825afe7ed90c034358acb82c9e'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydiaFnSD2Gomk_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '三竖韩国烤肉拌饭',\n",
       "   'id': 'B0FFGX3F7X',\n",
       "   'location': '113.449353,23.368059',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '钟落潭镇马洞秀水三横巷10号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'tel': '18520072006',\n",
       "    'rectag': '快餐',\n",
       "    'keytag': '快餐',\n",
       "    'rating': '4.4',\n",
       "    'cost': '23.00',\n",
       "    'opentime_today': '10:00-14:00 16:00-20:00',\n",
       "    'opentime_week': '每天10:00-14:00；每天16:00-20:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0196699ac6a34a00cc677a3ce5e90eb7'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/01cbe71bf79d88eea9ff61e97545d11b'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/023717baa9973c3abfd5b3282bf1fcd1'}]},\n",
       "  {'name': '河南烩面',\n",
       "   'id': 'B0FFG1YR57',\n",
       "   'location': '113.281070,23.126183',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '中山三路东昌大街32号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104',\n",
       "   'business': {'business_area': '大东',\n",
       "    'rectag': '烩面',\n",
       "    'keytag': '烩面',\n",
       "    'rating': '4.5',\n",
       "    'cost': '14.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/256a27ad4ef87adc26c4264a78a73149'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3f9729b3bf2a9366a7ca908cf5cdb6db'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/84a798514e52622b356a8bef109acbe5'}]},\n",
       "  {'name': '丽昌茶餐厅',\n",
       "   'id': 'B00141J5EJ',\n",
       "   'location': '113.512987,22.825651',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '南沙区',\n",
       "   'address': '麒龙东路65号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440115',\n",
       "   'business': {'business_area': '黄阁',\n",
       "    'tel': '020-39092520;15918434678',\n",
       "    'rectag': '茶餐厅',\n",
       "    'keytag': '茶餐厅',\n",
       "    'rating': '4.5',\n",
       "    'cost': '23.00',\n",
       "    'opentime_today': '08:00-22:00',\n",
       "    'opentime_week': '08:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b8d4727a09d6933bd8e142b405931b84'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bb61354471c31a435166b0d4d28981f2'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3788f8261541d41b3b3d5fa4ae94bcf9'}]},\n",
       "  {'name': '翠味港式茶餐厅',\n",
       "   'id': 'B00141I763',\n",
       "   'location': '113.588905,23.136978',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇凤凰城东门商业街226号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '020-82457837;020-82809003',\n",
       "    'rectag': '茶餐厅',\n",
       "    'keytag': '茶餐厅',\n",
       "    'rating': '4.4',\n",
       "    'cost': '43.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/24c2019a5bfd3e5d5160ba0ea56734e3'}]},\n",
       "  {'name': '瑞丰茶馆(天河店)',\n",
       "   'id': 'B00140NZ1T',\n",
       "   'location': '113.330728,23.143108',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅|餐饮服务;茶艺馆;茶艺馆',\n",
       "   'typecode': '050305|050600',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '天河北路林和街240号远东大厦1层',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和村',\n",
       "    'tel': '020-38861988',\n",
       "    'tag': '肉饼炖冬虫草,干鲍,七菜煲,鹅头,青瓜炒象拔蚌,清汤翅,春草煲,薏米海参',\n",
       "    'rectag': '茶座',\n",
       "    'keytag': '茶座',\n",
       "    'rating': '4.7',\n",
       "    'cost': '251.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/56fcca55a3105a2790ed8e69'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55eec5c1a31049f0a1950edc'}]},\n",
       "  {'name': '石首牛骨头',\n",
       "   'id': 'B0FFH9U1KP',\n",
       "   'location': '113.304189,23.088455',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '康乐小学后门500米石首牛骨头',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '新港',\n",
       "    'tel': '17771641312',\n",
       "    'rectag': '小吃快餐',\n",
       "    'keytag': '小吃快餐',\n",
       "    'rating': '4.0',\n",
       "    'cost': '49.00',\n",
       "    'opentime_today': '15:30-06:00',\n",
       "    'opentime_week': '15:30-06:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd2d71bf6f083ffaa4c0b4f65b727533'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7c3cc04eb9bf93fe7f24c00801cb4897'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8d4124958934a1a20823dea9a22d2f9c'}]},\n",
       "  {'name': '木桶饭(培正店)',\n",
       "   'id': 'B0FFK1UQZB',\n",
       "   'location': '113.092791,23.407325',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '花都区',\n",
       "   'address': '赤坭镇培正路58号B栋之14',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440114',\n",
       "   'business': {'tel': '13421913795;19817070292',\n",
       "    'rectag': '小吃快餐',\n",
       "    'keytag': '小吃快餐',\n",
       "    'rating': '4.2',\n",
       "    'cost': '13.00',\n",
       "    'opentime_today': '10:00-13:30 16:00-20:30',\n",
       "    'opentime_week': '10:00-13:30；16:00-20:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/19c3017785cc7e9580bb8670521c5ec6'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3cd5262fdf9760cfce85728829374350'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3e688117e2532489c0cbb0b28008eaf9'}]},\n",
       "  {'name': '速8快餐休闲茶饮',\n",
       "   'id': 'B00141R13Z',\n",
       "   'location': '113.832644,23.288062',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '莲园路51号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '荔城',\n",
       "    'tel': '19926032192;13250786900',\n",
       "    'rectag': '小吃快餐',\n",
       "    'keytag': '小吃快餐',\n",
       "    'rating': '4.2',\n",
       "    'alias': '壹加壹',\n",
       "    'opentime_today': '10:30-21:00',\n",
       "    'opentime_week': '10:30-21:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4470f5c498cee92abf804fec297e8a1f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6a0c458bc97c04ec99c67d0adccf7d89'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c9e4e6e2b18b30ed8daeb00940dd3d3c'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
